package com.songlanyun.modules.usercart.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.songlanyun.common.drive.IBaseService;
import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.modules.usercart.entity.UserCart;
import com.songlanyun.modules.usercart.model.dto.UserCartDTO;
import com.songlanyun.modules.usercart.model.vo.UserCartGroupVo;

import java.util.List;
import java.util.Map;

/**
 * 会员的购物车表
 *
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2020-11-12 09:27:04
 */
public interface UserCartService extends IBaseService<Long,UserCart> {


    List<UserCartGroupVo> myCarts(Long shopId,Long userId);

    UserCart add(Long userId, UserCartDTO userCartDTO);

    UserCart setNum(Long shopId, Long userId, UserCartDTO userCartDTO);

    int getCartGoodsCount(Long userId, Long goodsId);
}

